const  http = require("./http");
function checkShelfBookStatus(book_id) {
  return http.get("/shelfs/"+book_id+"/status",{},true);
}
function addBookToShelf(book_id) {
  return http.post("/shelfs",{
    book_id:book_id
  },true)
}
function removeBookFromShelf(book_id) {
  return http.deletex("/shelfs/"+book_id,{},true);
}
function getShelfBooks(){
  return http.get("/shelfs",{},true);
}
module.exports.checkShelfBookStatus = checkShelfBookStatus;
module.exports.addBookToShelf = addBookToShelf;
module.exports.getShelfBooks = getShelfBooks;
module.exports.removeBookFromShelf = removeBookFromShelf;